import request from './request'

export const add = (params) => {
  return request.post('/zxch/wzLog/app',params)
}
export const wzList = (params) => {
  return request.get('/zxch/wzLog/app/wzinfo/list',params)
}

export const getList = (params) => {
  return request.get('/zxch/wzLog/app/list',params)
}

export const getAdminList = (params) => {
  return request.get('/zxch/wzLog/app/admin/list',params)
}

export const getInfo = (id) => {
  return request.get(`/zxch/wzLog/app/${id}`)
}

export const returnwz = (params) => {
  return request.put(`/zxch/wzLog/app/admin`,params)
}

export const detwz = (id) => {
  return request.delete(`/zxch/wzLog/app/admin/${id}`)
}

// 物资列表
export const getWzList = (params) => {
  return request.get('/zxch/oa-wz-info/app/list',params)
}